package com.dragonwu.service;

import com.dragonwu.model.param.LoginParam;
import com.dragonwu.model.vo.LoginVo;

import java.io.IOException;
import java.util.Map;

/**
 * author: Dragon Wu
 * date: 2022-07-10 17:43
 */
public interface LoginService {

    /**
     * 用户登录
     * @param loginParam 登录参数
     * @return 登录返回对象
     */
    LoginVo login(LoginParam loginParam);

    /**
     * 退出登录
     */
    void logout() throws RuntimeException;

    /**
     * 获取验证码
     * @return Map UUID验证码对应redis里的key,image的base64编码
     */
    Map<String,String> getCaptcha() throws IOException;

}
